/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.toko.dao;

import com.toko.model.Transaction;
import java.util.List;

/**
 *
 * @author Benny
 */
public interface TransactionDAO {

    public void insert(Transaction transaction) throws Exception;

    public void delete(int id) throws Exception;

    public void update(int olId, Transaction transaction) throws Exception;

    public Transaction getOrder(int id) throws Exception;

    public List<Transaction> getTransaction() throws Exception;

    public List<Transaction> getTransactionByCustomer(int customerId) throws Exception;
}
